print("<b>Zoom files missing error:</b> Zoom is missing one or more of the required index data files.<br />Please make sure the generated index files are uploaded to the same path as this search script.<br />");
return;
}
if ($Spelling == 1 && !file_exists("zoom_spelling.zdat"))
print("<b>Zoom files missing error:</b> Zoom is missing the 'zoom_spelling.zdat' file required for the Spelling Suggestion feature which has been enabled.<br />");
// only display 'no query' line if no form is shown
if ($FormFormat == 0)
print($STR_NO_QUERY . "<br />");
PrintEndOfTemplate($template);
return;
}
// Load index data files (*.zdat) ---------------------------------------------
// Load the entire pages file into an array, all URL's on the site
$urls = file('zoom_pages.zdat');
// Load the entire page titles file into an array
$titles = file('zoom_titles.zdat');
if ($DisplayMetaDesc == 1)
{
$descriptions = file('zoom_descriptions.zdat');
if ($descriptions[0] == "This file blank due to indexing configuration.")
{
print("<b>Zoom config error:</b> The zoom_descriptions.zdat file is not properly created for the search settings specified.<br />Please check that you have re-indexed your site with the search settings selected in the configuration window.<br />");
print("<b>Zoom config error</b>: The zoom_datetime.zdat file is invalid or not up-to-date. Please make sure you have uploaded all files from the same indexing session.<br />");
$UseDateTime = 0;
}
fclose($fp_datetime);
}
// Open pagetext file
if ($DisplayContext == 1 || $AllowExactPhrase == 1)
print("<b>Zoom config error:</b> The zoom_pagetext.zdat file is not properly created for the search settings specified.<br />Please check that you have re-indexed your site with the search settings selected in the configuration window.<br />");
$LogString = $LogString . ", Time = " . $timetaken;
// end of entry
$LogString = $LogString . "\r\n";
$fp = fopen ($LogFileName, "ab");
if ($fp != false)
{
fputs ($fp, $LogString);
fclose ($fp);
}
else
{
print "Unable to write to log file (" . $LogFileName . "). Check that you have specified the correct log filename in your Indexer settings and that you have the required file permissions set.<br />";